<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <title>车牌识别</title>
    <link rel="stylesheet" type="text/css"
          href="{{ url_for('static',filename='jquery-easyui-1.7.0/themes/default/easyui.css') }}">
    <link rel="stylesheet" type="text/css"
          href="{{ url_for('static',filename='jquery-easyui-1.7.0/themes/icon.css') }}">
    <link rel="stylesheet" type="text/css"
          href="{{ url_for('static',filename='jquery-easyui-1.7.0/themes/color.css') }}">
    <script src="{{ url_for('static',filename='jquery-easyui-1.7.0/jquery.min.js') }}"></script>
    <script src="{{ url_for('static',filename='jquery-easyui-1.7.0/jquery.easyui.min.js') }}"></script>
</head>
<body class="easyui-layout">
<div data-options="region:'north'" style="height:160px;">
    <h1>车牌识别</h1>
    <h3>选择带有车辆牌照的照片（可以去baidu那搜点），点击上传后对照片中的车辆牌照进行识别并显示结果</h3>
    <h3>注意：D、O、0这种相似的东西识别率较低，偏转角较大的车牌照片识别率较低</h3>
</div>
<div data-options="region:'center'">
    <form enctype='multipart/form-data' method='POST' style="margin-left: 10px;margin-top: 10px;">
        <div>
            <input name="file" class="easyui-filebox" data-options="buttonText:'选择文件'"/>
            <input type="submit" name="submit" value="上传" class="easyui-textbox"/>
        </div>
    </form>
    <div style="margin-left: 10px;margin-top: 20px;">
        {% if filename %}
            <img src="/image/{{ filename }}">
        {% endif %}
        <p>{{ carno }}</p>
    </div>
    {% for msg in get_flashed_messages() %}
        <p>{{ msg }}</p>
    {% endfor %}
</div>
</body>
</html>